//
//  ItemScroller.m
//  AloTruyen
//
//  Created by vominhthong on 10/11/14.
//  Copyright (c) 2014 Khoai Nguyen Minh. All rights reserved.
//

#import "ItemScroller.h"

@implementation ItemScroller
-(instancetype)initItemWithParams:(NSDictionary *)params andFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:frame];
        [imageView setImageWithURL:[NSURL URLWithString:params[@"image"]]];
        [self addSubview:imageView];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
